<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
    <body>
        <form action="{% url 'polls:custome2'  %}" method="post">
            {% csrf_token %}
            {% for i in nums %}
                activity{{ i }}：
                <input type="text" name="a{{ i }}">

                <select name="affect{{ i }}">
                {% for i in options %}
                    <option value="{{ i }}">{{ i }}</option>
                {% endfor %}
                </select>
                <br/>
            {% endfor %}
            <br/><br/>
            <input type="hidden" name="total" value="{{ nums|length }}">
            <input type="submit" value="Submit">
        </form>
    </body>
</html>